```typescript index.ts
// Get Consents
const getAllRecordsResponse = adatreeConsent.consent.getAllRecords({
    consumerId: "auth0%7c5fbc585628421a006e83d95d"
    consentId: "148c9187-e52b-431f-9b24-7225e75ca2be"
    cdrArrangementId: "45db4977-b12f-42bf-808d-2680eb4bd366"
    status: "ACTIVE"
    accessFrequency: "ONCE_OFF"
    postUsageAction: "DELETION"
    dataHolderBrandId: "55b3299a-3e50-48a2-a190-cca263ccaba5"
    oldestCreated: "1997-01-12T15:43:00.121Z"
    newestCreated: "1997-01-12T15:43:00.121Z"
    oldestRevoked: "1997-01-12T15:43:00.121Z"
    newestRevoked: "1997-01-12T15:43:00.121Z"
    oldestSharingEndDate: "1997-01-12T15:43:00.121Z"
    newestSharingEndDate: "1997-01-12T15:43:00.121Z"
    externalId: "an-external-id"
})
```